package cn.iocoder.yudao.module.dr.controller.admin.source.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 资源信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SourcePageReqVO extends PageParam {

    @Schema(description = "资源名称", example = "芋艿")
    private String sourceName;

    @Schema(description = "资源编号")
    private String sourceCode;

    @Schema(description = "资源类型", example = "1")
    private String sourceType;

    @Schema(description = "来源信息")
    private String sourceDesc;

    @Schema(description = "文件类型", example = "2")
    private String fileType;

    @Schema(description = "文件大小")
    private Double fileSize;

    @Schema(description = "文件路径")
    private String file;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "来源")
    private String sourceFrom;

    @Schema(description = "资源状态")
    private Integer sourceStatus;

    @Schema(description = "主图", example = "https://www.iocoder.cn")
    private String mainImage;

}